package com.zyh.util;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Data;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author shihan
 * @date 2020-12-02-14:14
 */
@XmlRootElement(name ="Request")
@Data
public class XmlRequest {
    @JacksonXmlProperty(localName = "id")
    private Integer id;
    @JacksonXmlProperty(localName = "name")
    private String name;
    @JacksonXmlProperty(localName = "shortname")
    private String shortName;

}
